//
//  HaveBigPicCell.m
//  NeteaseNewsLY
//
//  Created by dllo on 16/1/21.
//  Copyright © 2016年 www.lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "HaveBigPicCell.h"

@implementation HaveBigPicCell
- (void)dealloc
{
    [_imgsrc release];
    [_title release];
    [_digest release];
    [_replyCount release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.imgsrc = [[UIImageView alloc] init];
        [self.contentView addSubview:_imgsrc];
        [_imgsrc release];
        
        self.title = [[UILabel alloc] init];
        [self.contentView addSubview:_title];
        [_title release];
        
        self.digest = [[UILabel alloc] init];
        [self.contentView addSubview:_digest];
        [_digest release];
        _digest.numberOfLines = 0;
        
        self.replyCount = [[UILabel alloc] init];
        [self.contentView addSubview:_replyCount];
        [_replyCount release];
        
    }
    return self;
}
- (void)layoutSubviews
{
    _imgsrc.frame = CGRectMake(WIDTH * 10, HEIGHT * 20, WIDTH * 355, HEIGHT * 180);
    
    _title.frame = CGRectMake(WIDTH * 10, HEIGHT * 210, WIDTH * 355, HEIGHT * 25);
    
    _digest.frame = CGRectMake(WIDTH * 10, HEIGHT * 245, WIDTH * 355, HEIGHT * 50);
    _digest.textColor = [UIColor grayColor];
//    _digest.backgroundColor = [UIColor yellowColor];
    _digest.font = [UIFont systemFontOfSize:12];
    
//    _replyCount.frame = CGRectMake(300, 270, 75, 20);
//    _replyCount.textColor = [UIColor grayColor];
////    _replyCount.backgroundColor = [UIColor cyanColor];
//    _replyCount.font = [UIFont systemFontOfSize:12];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
